import request from '@/utils/request'

// 查询视频预案列表
export function listVideoPlan(query) {
  return request({
    url: '/system/videoPlan/videoPlanList',
    method: 'get',
    params: query
  })
}

// 查询视频预案详细
export function getVideoPlan(videoPlanId) {
  return request({
    url: '/system/videoPlan/' + videoPlanId,
    method: 'get'
  })
}

// 新增视频预案
export function addVideoPlan(data) {
  return request({
    url: '/system/videoPlan',
    method: 'post',
    data: data
  })
}

// 修改视频预案
export function updateVideoPlan(data) {
  return request({
    url: '/system/videoPlan',
    method: 'put',
    data: data
  })
}

// 删除视频预案
export function delVideoPlan(videoPlanId) {
  return request({
    url: '/system/videoPlan/' + videoPlanId,
    method: 'delete'
  })
}

// 导出视频预案
export function exportVideoPlan(query) {
  return request({
    url: '/system/videoPlan/export',
    method: 'get',
    params: query
  })
}
